package revendication

class Post {

    static constraints = {
		content(blank:false, maxSize:1000)
		title(blank:false,unique:true)
    }
	
	static belongsTo = User
	
    User user;
//	
	static hasMany = [likeUsers : User, comments : Comment]
	
	
	String content
	String title
	Date dateCreated
	List comments
}
